Global Index
HTML5 JS API Index > Browser Tutorials & Specs

BeforeUnloadEvent

Extends Event.

There are no BeforeUnloadEvent-specific initialization methods.

Properties
DOMString
returnValue
The returnValue attribute represents the message to show the user. When the event is created, the attribute must be set to the empty string. On getting, it must return the last value it was set to. On setting, the attribute must be set to the new value.